﻿using System.Windows;

namespace ListView_contains_TextBox
{
  public partial class MainWindow : Window {
    public MainWindow() {
      InitializeComponent();
      DataContext = data_;
    }
    private BindData data_ = new BindData();

    private void button1_Click(object sender, RoutedEventArgs e)
    {
        data_.addPair(textBox1.Text, textBox2.Text);
    }
  }
}
